public class test {
    public static void main(String[] args) {
        int[] flowerbed = new int[7];
        flowerbed[0] = 1;
        flowerbed[1] = 0;
        flowerbed[2] = 0;
        flowerbed[3] = 0;
        flowerbed[4] = 1;
        flowerbed[5] = 0;
        flowerbed[6] = 0;
        Solution solution = new Solution();
        System.out.println(solution.canPlaceFlowers(flowerbed, 2));


    }
}
